<template>
  <Dialog title="流程详情" v-model="dialogVisible" width="95%" top="10px">
    <BpmProcessInstanceDetail v-if="dialogVisible" :id="activityId" />
  </Dialog>
</template>

<script setup lang="ts">
import BpmProcessInstanceDetail from './index.vue'

defineOptions({ name: 'ProcessInstancePopupView' })

const dialogVisible = ref(false)

const activityId = ref('')

const show = (id: string) => {
  activityId.value = id
  dialogVisible.value = true
}

defineExpose({ show })
</script>
